// 分类相关的数据ts类型
export interface ResponseData {
    code: number,
    message: string,
    ok: boolean,
}

// 分类ts类型
export interface CategoryObj {
    id: number | string,
    category_title: string,
    category_desc: string,
    category_img: string,
    category_parent_id: number | string,
    category_level: number | string,
    createdAt: Date | string,
    updatedAt: Date | string,
    name: string,
    category1Id?: number,
    category2Id?: number,
}

export interface CategoryResponseData extends ResponseData {
    data: CategoryObj[]
}

export interface AttrValue {
    id: number,
    valueName: string,
    attrId: number
}

export type AttrValueList = AttrValue[];

export interface Attr {
    id?: number,
    attrName: string,
    categoryId: number,
    categoryLevel: number
    atttValueList: AttrValueList
}

export type AttrList = Attr[]

export interface AttrResponseData extends ResponseData {
    data: Attr[]
}